package domain;

import java.util.Arrays;
import java.util.List;

import domain.extra.Column;
import domain.extra.Result;
import domain.extra.Row;

public class RowBet extends Bet {
	private Row row;
	private int chips; 

	public RowBet() {
	}
	
	public RowBet(Row row, int chips) {
		this.row = row; 
		this.chips= chips; 
	}

	@Override
	public int gain() {
		return this.getCount() * 3;
	}

	@Override
	public boolean win(Result r) {
		return this.row.equals(r.getRow());
	}

	@Override
	public List getOptions() {
		return Arrays.asList(Row.values());
	}
	
	@Override
	public String getDescription() {
		return "RowBet";
	}

	@Override
	public void typeOption(Object type) {
		this.row= (Row) type;
	}
	
}
